@extends('layouts.auth')

@section('title')登录 -
@endsection


@section('content')
<div class="container">
    <div class="row" style="">
        <div style="margin:0 auto;margin-top:80px;max-width:350px;min-width:300px" class="auth-form">
            <div class="panel panel-default">
                <div class="panel-heading"><i class="fa fa-sign-in" aria-hidden="true"></i> 登录</div>
                <div class="panel-body"  style="padding:15px 30px 15px">
                    <form class="form-horizontal" role="form" method="POST" action="{{ route('login') }}">
                        {{ csrf_field() }}

                        <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                            @if (count($errors) > 0)
                                <div class="alert alert-danger">
                                    {!! implode('<br/>', $errors->all()) !!}
                                </div>
                            @endif

                            <div >
                                <input id="name" placeholder="用户名" type="text" class="form-control" name="name" value="" required autofocus>


                            </div>
                        </div>

                        <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}" style="text-align: vertical-align:bottom">


                            <div >
                                <input id="password" placeholder="密码"  type="password" class="form-control" value="" name="password" required>


                            </div>
                        </div>

                        <div class="form-group">

                            <div >
                                <div class="checkbox" style="vertical-align: bottom">
                                    <label style="float:left">
                                        <input type="checkbox" name="remember" {{ old('remember') ? 'checked' : '' }} > 记住登录
                                    </label>

                                    <a class="" href="#" title="jiejia2009@gmail.com" style="float:right">
                                        忘记密码?
                                    </a>

                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div >
                                <button type="submit" class="btn btn-success btn-block">
                                    登录
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
